<img src="/assets/img/<?php echo $banner; ?>" class="banner"/>
<div class="bottom-content">
    <div class="left">
        <h3><span><?php echo $this->lang->line($main_menu['label']); ?></span></h3>
        <ul>
            <?php foreach ($sub_menu as $sm): ?>
                <li>
                    <a href="<?php echo $sm['link']; ?>">
                        <?php echo $this->lang->line($sm['label']); ?>
                    </a>
                </li>
            <?php endforeach; ?>
        </ul>
		<?php if($type != TYPE_PUBLICATION):?>
        <div class="search-container">
            <div class="search-title">
                <?php if (in_array($type, array(TYPE_JOCO_TRENDS, TYPE_INDUSTRY_TRENDS))): ?>
                    <span><?php echo $this->lang->line('news_search'); ?></span>
                <?php endif; ?>
                <?php if (in_array($type, array(TYPE_CITY, TYPE_LIGHT, TYPE_ROAD, TYPE_LANDED_PROPERTY))): ?>
                    <span><?php echo $this->lang->line('project_search'); ?></span>
                <?php endif; ?>
            </div>
            <input type="text" class="text" name="keywords"/>
            <a href="javascript:void(0);" class="search">
                <img src="/assets/img/search.jpg" alt="<?php echo $this->lang->line('search'); ?>"/>
            </a>
        </div>
		<?php endif;?>

        <div class="contact">
            <?php if ($g_lang != 'en'): ?>
                <a href="/entry/show/<?php echo TYPE_CONTACT; ?>">联系我们</a><br/>
            <?php endif; ?>
            <a href="/entry/show/<?php echo TYPE_CONTACT; ?>">CONTACT US</a>
        </div>
        <div class="member">
            <select name="member" style="width:140px;">
                <option value="0">
                    <?php echo $this->lang->line('select'); ?>
                </option>
                <?php if (isset($g_members[0])): ?>
                    <?php foreach ($g_members as $member): ?>
                        <option value="<?php echo $member->link; ?>">
                            <?php echo $member->name; ?>
                        </option>
                    <?php endforeach; ?>
                <?php endif; ?>
            </select>
        </div>
    </div>
    <div class="right">
        <div class="path">
            <a href="/"><?php echo $this->lang->line('home'); ?></a> >

            <a href="<?php echo $main_menu['link']; ?>">
                <?php echo $this->lang->line($main_menu['label']); ?>
            </a> >

            <a href="<?php echo $sub_menu[$type]['link']; ?>">
                <?php echo $this->lang->line($sub_menu[$type]['label']); ?>
            </a>
        </div>
        <h3><?php echo $this->lang->line($sub_menu[$type]['label']); ?></h3>

        <?php if($type ==  TYPE_JOCO_TRENDS):?>
            <div class="top">
                <a href="/entry/show/<?php echo TYPE_JOCO_TRENDS.'/'.$g_company_news->id;?>" class="thumbnail">
                    <img src="/assets/uploads/setting/company-news-top.jpg" alt="joco news"/>
                </a>
                <a href="/entry/show/<?php echo TYPE_JOCO_TRENDS.'/'.$g_company_news->id;?>">
                    <?php echo $g_company_news->title;?>
                </a>
                <p><?php echo utf8_substr(trim_html_tags($g_company_news->content), 90); ?></p>
            </div>
        <?php endif; ?>

        <?php if($type ==  TYPE_INDUSTRY_TRENDS):?>
            <div class="top">
                <a href="/entry/show/<?php echo TYPE_INDUSTRY_TRENDS.'/'.$g_industry_news->id;?>" class="thumbnail">
                    <img src="/assets/uploads/setting/industry-news-top.jpg" alt="joco news"/>
                </a>
                <a href="/entry/show/<?php echo TYPE_INDUSTRY_TRENDS.'/'.$g_industry_news->id;?>">
                    <?php echo $g_industry_news->title;?>
                </a>
                <p><?php echo utf8_substr(trim_html_tags($g_industry_news->content), 90); ?></p>
            </div>
        <?php endif; ?>

        <div class="list-container">
            <?php if (in_array($type, array(TYPE_JOCO_TRENDS, TYPE_INDUSTRY_TRENDS))): ?>
                <ul class="list"><li></li></ul>
            <?php endif; ?>
            <?php if (in_array($type, array(TYPE_LANDED_PROPERTY, TYPE_CITY, TYPE_ROAD, TYPE_LIGHT, TYPE_PUBLICATION))): ?>
                <ul class="entries"><li></li></ul>
            <?php endif; ?>
            <div class="page-links"></div>
        </div>
    </div>
    <div class="clear"></div>
    <?php require FCPATH . 'application/views/frontend/_bottom.php'; ?>
</div>